//
//  icmp.h
//  DeviceLock
//
//  Created by shb on 3/4/13.
//
//

#ifndef __DeviceLock__icmp__
#define __DeviceLock__icmp__


struct IPingObserver
{
    virtual ~IPingObserver(){}
    
    virtual void OnReply(unsigned short bytesInReply, unsigned int ttl, long long time) = 0;
    virtual void OnRequestTimeout(long long time) = 0;
    virtual void OnComplete() = 0;
};

// return value of Ping is expires time
unsigned int Ping(const char* destination, unsigned int attempts, IPingObserver* observer);

 
#endif /* defined(__DeviceLock__icmp__) */
